-- GENERATED SPELL FOR [Or'kaos the Insane] --


function spell0_23168(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23168', 653, 1)
end

function spell1_23168(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(17547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23168', 5284, 1)
end

function spell2_23168(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23168', 643, 1)
end

function Sorts_23168(pUnit, Event)
local choix_sorts_23168 = math.random(0, 2)
if choix_sorts_23168 == 0 then
pUnit:RegisterEvent('spell0_23168', 1, 1)
end
if choix_sorts_23168 == 1 then
pUnit:RegisterEvent('spell1_23168', 1, 1)
end
if choix_sorts_23168 == 2 then
pUnit:RegisterEvent('spell2_23168', 1, 1)
end
end

function mob23168_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23168', math.random(1500, 3000), 1)
end

function mob23168_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23168_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23168_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23168, 1, 'mob23168_Action')
RegisterUnitEvent(23168, 2, 'mob23168_Leave')
RegisterUnitEvent(23168, 3, 'mob23168_Kill')
RegisterUnitEvent(23168, 4, 'mob23168_Die')
